<?php
declare(strict_types=1);

namespace App\Resource\Activity\MidAutumn2022\Setting;


use Illuminate\Http\Resources\Json\JsonResource;

class Resource extends JsonResource
{
    public function toArray($request)
    {
        return [
            "start_at" => date("m-d H:i", strtotime($this->start_at)),
            "end_at" => date("m-d H:i", strtotime($this->end_at)),
            "is_visible" => $this->is_visible,
        ];
    }
}